package cn.shyouchi.wuguanjia.android.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Eenie on 2016/11/14 at 15:39
 * Email: 472279981@qq.com
 * Des:
 */

public class OwnerEntity {


    /**
     * resultCode : 0
     * resultMessage : [{"id":2,"projects_id":1,"name":"eenie","images":"/usr/local/EC/youchi/images/project/20161114/20161114161432YC2995018.jpg","info":{"sex":"男","age":18,"height":170,"job":"android","workinghours":"08:30:54","numberplates":"沪A88888","remarks":"back up"}},{"id":3,"projects_id":1,"name":"eenie","images":"/usr/local/EC/youchi/images/project/20161114/20161114161432YC741472090.jpg","info":{"sex":"男","age":18,"height":170,"job":"android","workinghours":"08:30:54","numberplates":"沪A88888","remarks":"back up"}},{"id":4,"projects_id":1,"name":"eenie","images":"/usr/local/EC/youchi/images/project/20161114/20161114161432YC147284565.jpg","info":{"sex":"男","age":18,"height":170,"job":"android","workinghours":"08:30:54","numberplates":"沪A88888","remarks":"back up"}},{"id":5,"projects_id":1,"name":"eenie","images":"/usr/local/EC/youchi/images/project/20161114/20161114161433YC1952175474.jpg","info":{"sex":"男","age":18,"height":170,"job":"android","workinghours":"08:30:54","numberplates":"沪A88888","remarks":"back up"}}]
     */

    private int resultCode;
    private List<ProprietorBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ProprietorBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ProprietorBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ProprietorBean implements Parcelable {
        /**
         * id : 2
         * projects_id : 1
         * name : eenie
         * images : /usr/local/EC/youchi/images/project/20161114/20161114161432YC2995018.jpg
         * info : {"sex":"男","age":18,"height":170,"job":"android","workinghours":"08:30:54","numberplates":"沪A88888","remarks":"back up"}
         */

        private int id;
        private int projects_id;
        private String name;
        private String images;
        private InfoBean info;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getProjects_id() {
            return projects_id;
        }

        public void setProjects_id(int projects_id) {
            this.projects_id = projects_id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImages() {
            return images;
        }

        public void setImages(String images) {
            this.images = images;
        }

        public InfoBean getInfo() {
            return info;
        }

        public void setInfo(InfoBean info) {
            this.info = info;
        }

        public static class InfoBean implements Parcelable {
            /**
             * sex : 男
             * age : 18
             * height : 170
             * job : android
             * workinghours : 08:30:54
             * numberplates : 沪A88888
             * remarks : back up
             */

            private String sex;
            private int age;
            private int height;
            private String job;
            private String workinghours;
            private String numberplates;
            private String remarks;
            private String phone;


            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public int getAge() {
                return age;
            }

            public void setAge(int age) {
                this.age = age;
            }

            public int getHeight() {
                return height;
            }

            public void setHeight(int height) {
                this.height = height;
            }

            public String getJob() {
                return job;
            }

            public void setJob(String job) {
                this.job = job;
            }

            public String getWorkinghours() {
                return workinghours;
            }

            public void setWorkinghours(String workinghours) {
                this.workinghours = workinghours;
            }

            public String getNumberplates() {
                return numberplates;
            }

            public void setNumberplates(String numberplates) {
                this.numberplates = numberplates;
            }

            public String getRemarks() {
                return remarks;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.sex);
                dest.writeInt(this.age);
                dest.writeInt(this.height);
                dest.writeString(this.job);
                dest.writeString(this.workinghours);
                dest.writeString(this.numberplates);
                dest.writeString(this.remarks);
                dest.writeString(this.phone);
            }

            public InfoBean() {
            }

            protected InfoBean(Parcel in) {
                this.sex = in.readString();
                this.age = in.readInt();
                this.height = in.readInt();
                this.job = in.readString();
                this.workinghours = in.readString();
                this.numberplates = in.readString();
                this.remarks = in.readString();
                this.phone = in.readString();
            }

            public static final Creator<InfoBean> CREATOR = new Creator<InfoBean>() {
                @Override
                public InfoBean createFromParcel(Parcel source) {
                    return new InfoBean(source);
                }

                @Override
                public InfoBean[] newArray(int size) {
                    return new InfoBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeInt(this.projects_id);
            dest.writeString(this.name);
            dest.writeString(this.images);
            dest.writeParcelable(this.info, flags);
        }

        public ProprietorBean() {
        }

        protected ProprietorBean(Parcel in) {
            this.id = in.readInt();
            this.projects_id = in.readInt();
            this.name = in.readString();
            this.images = in.readString();
            this.info = in.readParcelable(InfoBean.class.getClassLoader());
        }

        public static final Parcelable.Creator<ProprietorBean> CREATOR = new Parcelable.Creator<ProprietorBean>() {
            @Override
            public ProprietorBean createFromParcel(Parcel source) {
                return new ProprietorBean(source);
            }

            @Override
            public ProprietorBean[] newArray(int size) {
                return new ProprietorBean[size];
            }
        };
    }
}
